import request from '@/utils/request'
export default {
    add(data) {
        return request({
            url: '/v3/organization/department/add',
            method: 'post',
            data
        })
    },
    edit(data) {

        return request({
            url: '/v3/organization/department/edit',
            method: 'post',
            data
        })
    },
    delById(no) {
        return request({
            url: `//v3/organization/department/delByDepartmentNo?no=${no}`,
            method: 'get',
        })
    },
    delListById(list) {
        return request({
            url: `/v3/organization/department/delListByDepartmentNo?noList=${list}`,
            method: 'get'
        })
    },
    //条件查询
    queryByCondition(data) {

        return request({
            url: '/v3/organization/department/queryByCondition',
            method: 'post',
            data
        })
    },

    //分页查询
    queryPageByCondition(data) {
        return request({
            url: '/v3/organization/department/queryPageByCondition',
            method: 'post',
            data
        })
    }
}
